package com.lantosec.hmrp.modules.system.vo;

import com.lantosec.hmrp.modules.system.entity.SysPosition;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 岗位表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-02-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="SysPosition对象", description="岗位表")
public class SysPositionVO extends BaseVO<SysPosition> {
    private static final long serialVersionUID = 1L;


    public SysPositionVO(SysPosition entity){
        this.positionId = entity.getPositionId();
        this.positionName = entity.getPositionName();
        this.positionOrder = entity.getPositionOrder();
        this.flag = entity.getFlag();
    }

    @Override
    public SysPosition convertToEntity(){
        return new SysPosition(this);
    }


    @ApiModelProperty(value = "ID")
    private String positionId;

    @ApiModelProperty(value = "岗位名称")
    private String positionName;

    @ApiModelProperty(value = "排序")
    private Integer positionOrder;

    @ApiModelProperty(value = "是否删除")
    private Boolean flag;


}
